package com.tinem.platform.client.user;

import com.tinem.platform.module.pojo.vo.user.AddReq;
import com.tinem.platform.module.pojo.vo.user.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @className UserClient
 * @description TODO
 * @site
 * @company
 * @create 2021/12/22 17:32:16
 */
@FeignClient("platform-cloud-service-user")
@RequestMapping("/user")
public interface UserClient {

    @PostMapping("add.api")
    @ResponseBody
    UserInfo add(@RequestBody AddReq rbacUser);

    @PostMapping("addByEmail.api")
    @ResponseBody
    UserInfo addByEmail(@RequestBody AddReq rbacUser);

}
